/*
 * spriteBase.cs
 *
 * Created on November 17, 2007, 10:21 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * Copyright (C) 2010       Mathijs Miermans
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */


using System;
using System.Windows.Media;
using System.Windows.Shapes;

using HexTD.ExtendNet;

namespace HexTD.sprite
{
	public class ESRedRaver : EnemySpriteBaseRotor
	{

		private static Color color = Colors.Red;

		public ESRedRaver()
			: base("Red Raver")
		{
			this.rotPerTime = (float)ExtendMath.DegreeToRadian(10.0);
			this.damageColor = COLOR.RED;
			this.damageColorAnti = COLOR.GREEN;
		}

		public override string getInfostring()
		{
			string retstring = "";
			retstring += "<h1>Red Raver</h1>" +
					"<p>" +
					"A red enemy. Red towers are very efficient at killing this one. Green ones are almost useless." +
					"</p>" +
					"<p>" + base.getInfostring() + "</p>";
			return retstring;
		}

		public override Color generateColor()
		{
			return color;
		}

		public override Brush generateStroke()
		{
#if PORT
			return new Brush(1.0f * this.context.strokeScale, Brush.CAP_ROUND, Brush.JOIN_MITER);
#else
			return null;
#endif
		}

		public override Shape generateShape()
		{
#if PORT
			float scale = this.context.paintScale * this.size.scaleMod;
			float[,] points = {
				{-scale / 4, 0},
				{+scale / 8, -scale / 8},
				{0, +scale / 4},
				{-scale / 8, -scale / 8},
				{+scale / 4, 0},
				{-scale / 8, +scale / 8},
				{0, -scale / 4},
				{+scale / 8, +scale / 8},
				{-scale / 4, 0}
			};
			return Geometry.coordsToGeneralPath(points, true);
#else
			return null;
#endif
		}

		public override string getSvgName()
		{
			return null;
		}
	}
}